home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / QuickDraw 3D / Samples / SampleCode / Plug-in - WireFrame Renderer / SR_Rasterizers.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-14  |  5.2 KB  |  173 lines  |  [TEXT/MPS ]

  1. /******************************************************************************
  2.  **                                                                             **
  3.  **     Module:        SR_Rasterizers.h                                         **
  4.  **                                                                          **
  5.  **                                                                          **
  6.  **     Purpose:     Sample Renderer rasterizer function declarations         **
  7.  **                                                                          **
  8.  **                                                                          **
  9.  **                                                                          **
  10.  **     Copyright (C) 1996 Apple Computer, Inc.  All rights reserved.         **
  11.  **                                                                             **
  12.  **                                                                             **
  13.  *****************************************************************************/
  14. #ifndef    SR_Rasterizers_h
  15. #define SR_Rasterizers_h
  16.  
  17. #include "SR.h"
  18. #include "SR_Marker.h"
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif    /* __cplusplus */
  23.  
  24.  
  25. /******************************************************************************
  26.  **                                                                             **
  27.  **                            Line Rasterization Functions                     **
  28.  **                                                                             **
  29.  *****************************************************************************/
  30.  
  31. TQ3Status SRLine_Rasterize_32(
  32.     const struct TSRPrivate         *srPrivate, 
  33.     const TQ3Point3D                 *pt0, 
  34.     const TQ3Point3D                 *pt1, 
  35.     const TQ3ColorRGB                *lineColorRGB);
  36.  
  37. TQ3Status SRLine_Rasterize_32_WClip(
  38.     const struct TSRPrivate         *srPrivate, 
  39.     const TQ3Point3D                 *pt0, 
  40.     const TQ3Point3D                 *pt1, 
  41.     const TQ3ColorRGB                *lineColorRGB);
  42.     
  43. TQ3Status SRLine_Rasterize_8(
  44.     const struct TSRPrivate         *srPrivate, 
  45.     const TQ3Point3D                 *pt0, 
  46.     const TQ3Point3D                 *pt1, 
  47.     const TQ3ColorRGB                *lineColorRGB);
  48.  
  49. TQ3Status SRLine_Rasterize_8_WClip(
  50.     const struct TSRPrivate         *srPrivate, 
  51.     const TQ3Point3D                 *pt0, 
  52.     const TQ3Point3D                 *pt1, 
  53.     const TQ3ColorRGB                *lineColorRGB);
  54.     
  55. TQ3Status SRLine_Rasterize_Null(
  56.     const struct TSRPrivate         *srPrivate, 
  57.     const TQ3Point3D                 *pt0, 
  58.     const TQ3Point3D                 *pt1, 
  59.     const TQ3ColorRGB                *lineColorRGB);
  60.  
  61.  
  62. /******************************************************************************
  63.  **                                                                             **
  64.  **                            Point Rasterization Functions                     **
  65.  **                                                                             **
  66.  *****************************************************************************/
  67.  
  68. TQ3Status SRPoint_Rasterize_32(
  69.     const struct TSRPrivate         *srPrivate, 
  70.     const TQ3Point3D                 *pt0, 
  71.     const TQ3ColorRGB                *pointColorRGB);
  72.     
  73. TQ3Status SRPoint_Rasterize_32_WClip(
  74.     const struct TSRPrivate         *srPrivate, 
  75.     const TQ3Point3D                 *pt0, 
  76.     const TQ3ColorRGB                *pointColorRGB);
  77.  
  78. TQ3Status SRPoint_Rasterize_8(
  79.     const struct TSRPrivate         *srPrivate, 
  80.     const TQ3Point3D                 *pt0, 
  81.     const TQ3ColorRGB                *pointColorRGB);
  82.  
  83. TQ3Status SRPoint_Rasterize_8_WClip(
  84.     const struct TSRPrivate         *srPrivate, 
  85.     const TQ3Point3D                 *pt0, 
  86.     const TQ3ColorRGB                *pointColorRGB);
  87.     
  88. TQ3Status SRPoint_Rasterize_Null(
  89.     const struct TSRPrivate         *srPrivate, 
  90.     const TQ3Point3D                 *pt0, 
  91.     const TQ3ColorRGB                *pointColorRGB);    
  92.     
  93.     
  94. /******************************************************************************
  95.  **                                                                             **
  96.  **                            Marker Rasterization Functions                     **
  97.  **                                                                             **
  98.  *****************************************************************************/
  99.  
  100. TQ3Status SRMarker_Rasterize_32(
  101.     const struct TSRPrivate         *srPrivate,
  102.     const TQ3Point3D                 *pt0,
  103.     const TSRMarkerRasterData        *bitmap,
  104.     const TQ3ColorRGB                 *pointColorRGB);
  105.  
  106. TQ3Status SRMarker_Rasterize_32_WClip(
  107.     const struct TSRPrivate         *srPrivate,
  108.     const TQ3Point3D                 *pt0,
  109.     const TSRMarkerRasterData        *bitmap,
  110.     const TQ3ColorRGB                 *pointColorRGB);
  111.  
  112. TQ3Status SRMarker_Rasterize_8( 
  113.     const struct TSRPrivate         *srPrivate,
  114.     const TQ3Point3D                 *pt0,
  115.     const TSRMarkerRasterData        *bitmap,
  116.     const TQ3ColorRGB                 *pointColorRGB);
  117.             
  118. TQ3Status SRMarker_Rasterize_8_WClip( 
  119.     const struct TSRPrivate         *srPrivate,
  120.     const TQ3Point3D                 *pt0,
  121.     const TSRMarkerRasterData        *bitmap,
  122.     const TQ3ColorRGB                 *pointColorRGB);
  123.     
  124. TQ3Status SRMarker_Rasterize_Null(
  125.     const struct TSRPrivate         *srPrivate, 
  126.     const TQ3Point3D                 *pt0, 
  127.     const TSRMarkerRasterData        *bitmap, 
  128.     const TQ3ColorRGB                *pointColorRGB);
  129.     
  130.     
  131. /******************************************************************************
  132.  **                                                                             **
  133.  **                    Pixmap Marker Rasterization Functions                     **
  134.  **                                                                             **
  135.  *****************************************************************************/
  136.  
  137. TQ3Status SRPixmapMarker_Rasterize_32(
  138.     const struct TSRPrivate         *srPrivate,
  139.     const TQ3Point3D                 *pt0,
  140.     const TSRPixmapMarkerRasterData    *pixmap,
  141.     const TQ3ColorRGB                 *highlightColor);
  142.  
  143. TQ3Status SRPixmapMarker_Rasterize_32_WClip(
  144.     const struct TSRPrivate         *srPrivate,
  145.     const TQ3Point3D                 *pt0,
  146.     const TSRPixmapMarkerRasterData    *pixmap,
  147.     const TQ3ColorRGB                 *highlightColor);
  148.  
  149. TQ3Status SRPixmapMarker_Rasterize_8( 
  150.     const struct TSRPrivate         *srPrivate,
  151.     const TQ3Point3D                 *pt0,
  152.     const TSRPixmapMarkerRasterData    *pixmap,
  153.     const TQ3ColorRGB                 *highlightColor);
  154.     
  155. TQ3Status SRPixmapMarker_Rasterize_8_WClip( 
  156.     const struct TSRPrivate         *srPrivate,
  157.     const TQ3Point3D                 *pt0,
  158.     const TSRPixmapMarkerRasterData    *pixmap,
  159.     const TQ3ColorRGB                 *highlightColor);
  160.     
  161. TQ3Status SRPixmapMarker_Rasterize_Null(
  162.     const struct TSRPrivate         *srPrivate, 
  163.     const TQ3Point3D                 *pt0, 
  164.     const TSRPixmapMarkerRasterData    *pixmap,
  165.     const TQ3ColorRGB                *highlightColor);
  166.         
  167.     
  168. #ifdef __cplusplus
  169. }
  170. #endif    /* __cplusplus */
  171.  
  172. #endif  /*  SR_Rasterizers_h  */
  173.